package js.web.center.netty.channel;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import js.web.center.netty.code.JsWebSocketDecoder;
import js.web.center.netty.code.JsWebSocketEncoder;

public class JsWebChildChannelHandler extends ChannelInitializer<SocketChannel> {

	@Override
	protected void initChannel(SocketChannel channel) throws Exception {
		channel.pipeline().addLast(new JsWebSocketEncoder());
		channel.pipeline().addLast(new JsWebSocketDecoder());
		channel.pipeline().addLast(new JsWebSocketHandler());
	}
}
